import java.util.Scanner;

public class day10 {
    public static void main(String[]args){
        Scanner scan=new Scanner(System.in);
        String str=scan.nextLine();
        int score=0;
        int mm=str_Length_score(str);
        score+=mm;//密码长度
        String U_D="";
        int zm=hasChar(str,U_D);
        boolean is_U_D= Boolean.parseBoolean(U_D);
        score+=zm;//字母
        int sz=hasInt_size(str);
        score+=sz;//数字
        int fh=hasXXX_size(str);
        score+=fh;

        int choose=choose(zm==0,sz==0,fh==0,is_U_D);
        score+=choose;
        targetWin(score);
    }

    public static void targetWin(int score){
        if(score>=90){
            System.out.println("VERY_SECURE");
        }else if(score>=80){
            System.out.println("SECURE");
        }else if(score>=70){
            System.out.println("VERY_STRONG");
        }else if(score>=60){
            System.out.println("STRONG");
        }else if(score>=50){
            System.out.println("AVERAGE");
        }else if(score>=25){
            System.out.println("WEAK");
        }else{
            System.out.println("VERY_WEAK");
        }
    }

    public static int choose(boolean zm,boolean sz,boolean fh,boolean U_D){
        if(U_D&&sz&&fh){
            return 5;
        }else if(zm&&sz&&fh){
            return 3;
        }else if(zm&&sz){
            return 2;
        }
        return 0;
    }

    public static int str_Length_score(String str){
        if(str.length()<=4){
            return 5;
        }else if(str.length()>=5&&str.length()<=7){
            return 10;
        }else{
            return 25;
        }
    }

    public static int hasChar(String str,String U_D){
        char ch;
        boolean U=false;
        boolean D=false;
        for(int i=0;i<str.length();i++){
            ch=str.charAt(i);
            if(ch>='A'&&ch<='Z'){
                U=true;
            }
            if(ch>='a'&&ch<='z'){
                D=true;
            }
        }
        if(U==false&&D==false){
            return 0;
        }else if(U==true&&D==false||U==false&&D==true){
            return 10;
        }else if(U==true&&D==true){
            U_D+=true;
            return 20;
        }
        return 0;
    }

    public static int hasInt_size(String str){
        char ch;
        int count=0;
        for(int i=0;i<str.length();i++){
            ch=str.charAt(i);
            if(ch>='0'&&ch<='9'){
                count++;
            }

        }
        if(count==0){
            return 0;
        }else if(count==1){
            return 10;
        }else{
            return 20;
        }
    }


    public static int hasXXX_size(String str){
        char ch;
        int count=0;
        for(int i=0;i<str.length();i++){
            ch=str.charAt(i);
            if(ch>='!'&&ch<='/'){
                count++;
            }
            if(ch>=':'&&ch<='@'){
                count++;
            }
            if(ch>='['&&ch<='`'){
                count++;
            }
            if(ch>='{'&&ch<='~'){
                count++;
            }
        }
        if(count==0){
            return 0;
        }else if(count==1){
            return 10;
        }else{
            return 25;
        }


    }



}
